package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.ShoppingCart;

public interface ShoppingCartService extends IService<ShoppingCart> {

    //加入购物车
    R add(ShoppingCart shoppingCart);

    //查询购物车
    R getAll();

    //清空购物车
    void clean();

    //购物车减一
    R sub(ShoppingCart shoppingCart);
}